int iAncho=225;
int centroX=227;
int centroZ=356;
float anchoCampo = 8.23/2;
float largoCampo = 23.87/2;
float altoRed = 1.06;
float cx(float x){
 return (x-centroX)/162.0; 
}

float cz(float z){
  return (centroZ-z)/296.0;
}

float cy(float y){//ajustar
  return(y);
}

float cxm(float x){
 return 100*anchoCampo*cx(x); 
}

float czm(float z){
 return 100*largoCampo*cz(z); 
}

float cym(float y){
 return  100*y;
}
float distancia(int px, int py, int qx, int qy){
  return sqrt(pow((px-qx),2)+pow((py-qy),2));
}


